<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>驳回</title>
    <link rel="stylesheet" th:href="@{/resources/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/resources/awi/css/AdminLTE.min.css}">
    <link rel="stylesheet" th:href="@{/resources/plugins/bootstrap-table/bootstrap-table.min.css}">
    <link rel="stylesheet" th:href="@{/resources/awi/css/font-awesome.css}">
    <link rel="stylesheet" th:href="@{/resources/plugins/ztree/css/ztreeStyle/ztreeStyle.css}">
</head>
<body>
<div class="container">

    <div class="row">
        <div class="col-md-12">
            <h4 class="header">驳回</h4>
            <hr>
        </div>
        <div class="col-md-12">
            <input type="hidden" name="taskId" id="taskId" th:value="${taskId}">
            <table class="table table-bordered">
                <tr>
                    <td style="width: 90px;">办理意见</td>
                    <td colspan="7">
                        <textarea id="opinion" name="opinion" class="form-control" rows="5"></textarea>
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
        </div>

        <div class="col-md-12">
            <hr>
            <button type="button" class="btn btn-primary center-block" onclick="processRejectSubmit()">提交办理</button>
        </div>
        <div class="col-md-12" style="margin-top: 25px;">
            <div class="panel panel-warning">
                <div class="panel-heading">功能说明</div>
                <div class="panel-body">
                    <ol>
                        <li>下一步处理人，做为下一步骤节点任务主要处理人，只能选择一人，若需选择多人办理，请点击返回上一页面，点击会签按钮</li>
                        <li>选择抄送人员后，所选人员可看到该条流程，但只能看流程流转情况，不能直接办理，仅起到通知作用</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script th:src="@{/resources/plugins/jQuery/jquery-2.2.3.min.js}"></script>
<!-- Bootstrap 3.3.6 -->
<script th:src="@{/resources/bootstrap/js/bootstrap.min.js}"></script>
<script th:src="@{/resources/commons/js/jquery.serializejson.js}"></script>
<script th:src="@{/resources/plugins/ztree/js/jquery.ztree.all.js}"></script>
<script th:src="@{/resources/commons/js/flowable-process.js}"></script>
<script type="text/javascript">
    function processRejectSubmit(){
        $.post("/task/reject",{"opinion":$("#opinion").val(),"taskId":$("#taskId").val()},function (response) {
            layer.closeAll();
        })


    }


</script>
</html>